package Engine.util;

import java.sql.Connection;
import java.sql.SQLException;

public class JdbcConnection {
	public Connection getConnection() throws SQLException {

		Connection conn = null;


		try {
			Class.forName("com.mysql.jdbc.Driver").newInstance();
			conn = java.sql.DriverManager
					.getConnection("jdbc:mysql://localhost/wow_data","walker","password");

		} catch (Exception e) {
			e.printStackTrace();
			System.exit(0);
		}
		System.out.println("Connection established");

       return conn;
        
	}
}
